package com.zyj.eps.mapper;

import com.zyj.eps.pojo.BackHomeApply;
import com.zyj.eps.pojo.Inform;
import com.zyj.eps.pojo.News;
import com.zyj.eps.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author super
 * @date 2022/3/22 20:16
 */
public interface UserMapper {
    List<User> getAllUser();
    User Login(@Param("uname")String uname,@Param("password")String password);
    int addUser(User user);
    int register(User user);
    User getUserByUUID(@Param("userID") String UUID);
    int editUserInfo(User user);
    News getNews(@Param("newsid") int id);
    List<User> getAllUserByHealth();
    List<Inform> getInformByUserId(int uid);
    int addBackHomeApply(BackHomeApply backHomeApply);
}
